package audit

import "github.com/gin-gonic/gin"

type AfterSalesRouter struct{}

func (r *AfterSalesRouter) InitAfterSalesRouter(Router *gin.RouterGroup) {
	afterSalesRouter := Router.Group("afterSales")

	{
		afterSalesRouter.POST("create", AfterSalesApi.CreateAfterSales)
		afterSalesRouter.PUT("cancel/:id", AfterSalesApi.CancelAfterSales)
		afterSalesRouter.PUT("approve/:id", AfterSalesApi.ApproveAfterSales)
		afterSalesRouter.PUT("reject/:id", AfterSalesApi.RejectAfterSales)
		afterSalesRouter.PUT("agree/:id", AfterSalesApi.AgreeAfterSales)
		afterSalesRouter.PUT("refund/:id", AfterSalesApi.RefundAfterSales)
	}
}
